package com.maxatime.pojo.data;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
public class stuInfoData {

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    @ExcelProperty("学生id")
    private String stuId;
    @ExcelProperty("学号")
    private Integer stuNum;
    @ExcelProperty("学生姓名")
    private String stuName;
    @ExcelProperty("手机号")
    private String mobile;
    @ExcelProperty("性别(F:女生;M:男生)")
    private String sex;
    @ExcelProperty("年龄")
    private Integer age;
    @ExcelProperty("证件类型（C:身份证;X:香港身份证;A:澳门身份证）")
    private String idType;
    @ExcelProperty("证件号码")
    private String idNum;
    //    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("出生日期")
    private Date birthday;

    @ExcelProperty("删除标志（0:正常;1:删除）")
    private Integer deleteFlag;
    @ExcelProperty("籍贯")
    private String nativePlace;
    @ExcelProperty("省")
    private String provincesId;
    @ExcelProperty("市")
    private String citiesId;
    @ExcelProperty("县")
    private String areasId;
    @ExcelProperty("详细地址")
    private String detailAddr;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("创建时间")
    private Date createDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("修改时间")
    private Date updateDate;
    @ExcelProperty("备注")
    private String remark;


}